Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support setting attributes for index #119

Merged
merged 5 commits into from
May 26, 2024

Conversation

junghoon-vans
Copy link
Owner

@junghoon-vans junghoon-vans commented May 25, 2024

Example

@Setting(
    sortAttributes = { "title" },  // make title attributes sortable
)
@Document(indexUid = "movies")
class Movie {
    @Id private int id;
    private String title;
    private String description;
    private String[] genres;
}

Provides an easy way to set property values for specific indexes via @Setting annotation.
The example above is setting the title attribute to be a sortable element.

What features are added

For more information about each setting, see Meilisearch's official documentation.


  • You have read the Spring Data contribution guidelines.
  • There is a ticket in the bug tracker for the project in our issue tracker. Add the issue number to the Closes #issue-number line below
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You submit test cases (unit or integration tests) that back your changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

Closes #118

@junghoon-vans junghoon-vans self-assigned this May 25, 2024
@junghoon-vans junghoon-vans added in: core Issues in core support in: repository Repositories abstraction type: enhancement A general enhancement labels May 25, 2024
@junghoon-vans junghoon-vans force-pushed the add-support-setting-attributes-for-index branch from 604022a to d34934d Compare May 26, 2024 12:19
Copy link

@junghoon-vans junghoon-vans merged commit b16bf0d into main May 26, 2024
2 checks passed
@junghoon-vans junghoon-vans deleted the add-support-setting-attributes-for-index branch May 26, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support in: repository Repositories abstraction type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support setting attributes for index
1 participant